package controller;

import java.awt.Color;
import java.util.ArrayList;
import java.util.HashMap;

import order.Order;
import model.*;
import GUI.*;

public class Client {
	Map map;
	Player player;
    Enemy[] enemyList;
	
	//LoginFrame loginFrame;
	//LobbyFrame lobbyFrame;
    MainFrame mainFrame;
   
    ArrayList<Order> orderList;
    
	public Client(){
	    
	    player = new Player("Tester");
	    enemyList = new Enemy[4];
	    for (int i = 0; i < 4; i++)
	    	enemyList[i] = new Enemy( "Enemy " + i, TechnologyLevel.Infantry, Color.red);
	    Player enemy = new Player("Enemy", "12345", Color.red);
	    map = new Map(player, enemy);
	   
	    mainFrame = new MainFrame(player, map, enemyList);
   
	}
	 public void updateEnemy(){
		 
	 }
	 public void showLogin(){//David has the method
		   
	   }
	    
	  public void showLobby(){//David has the method
		   
	   }
	  
	  public void addOrder(Order order){//David has the method
	    	orderList.add(order);
	    	//send the order to the server
	    }
	    
	 public void commitOrder(int index){//David has the method
	    	//send commit message
	    }
	    
	 public void updateMap(Map newMap){//David has the method
	    }
	    	
	    public static void main(String[] args){
	    	Client client = new Client();
	    }
}
